package com.linkwings.dbTemp;
  
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
public class DataBaseManager {
	private Connection connection;
	private ResultSet resultSet;
	private Boolean isSuccess;
	
	public void close()throws SQLException{
		if(resultSet!=null){
			try {
				resultSet.close();
			} catch ( Exception e ) { e.printStackTrace(); }
		}
		if(connection!=null){
			try {
				connection.close();
			} catch ( Exception e ) { e.printStackTrace(); }
		}
	}
	
	public Boolean getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public Connection getConnection() {
		return connection;
	}
	public void setConnection(Connection connection) {
		this.connection = connection;
	}
	public ResultSet getResultSet() {
		return resultSet;
	}
	public void setResultSet(ResultSet resultSet) {
		this.resultSet = resultSet;
	}

}
